//
// Created by jiangpenghui on 2023/3/27.
//

#include <iostream>
#include "HowMany.h"

void HowMany::print(const string &msg) {
    if (msg.size() != 0) {
        cout << msg << ":";
        cout << "objectCount = " << objectCount << endl;
    }
}

HowMany::~HowMany() {
    objectCount--;
    print("~HowMany()");
}


int HowMany::objectCount = 0;

HowMany f(HowMany x) {
    x.print("X argument inside f()");
    return x;
}
